//
//  PictureDetailPopView.m
//  QT
//
//  Created by 甘世清 on 2025/1/4.
//

#import "PictureDetailPopView.h"

@implementation PictureDetailPopView

- (void)SQ_UIViewForSelfView{
    self.backgroundColor = UIColor.whiteColor;
    self.layer.cornerRadius = 30;
    self.layer.masksToBounds = YES;
    UIView * lineView = [[UIView alloc]init];
    lineView.backgroundColor = SQColorF5F5F5;
    lineView.layer.cornerRadius = 4;
    [self addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
        make.top.equalTo(self).offset(10);
        make.width.mas_equalTo(50);
        make.height.mas_equalTo(8);
    }];
    UILabel * messageLabel = [[UILabel alloc]init];
    messageLabel.text = SQNSLocalString(@"尊敬的用户：\n  您好！系统检测到您尚未发布相易信息。为解锁该功能功能，烦请您点击去发布按钮发布一条相易信息进行解锁");
    messageLabel.textColor = SQColor333333;
    messageLabel.font = FONT_REGULAR(14);
    messageLabel.numberOfLines = 0;
    [self addSubview:messageLabel];
    [messageLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.top.equalTo(lineView.mas_bottom).offset(30);
            make.width.mas_equalTo(SCREEN_WIDETH-50);
    }];
    
    [self addSubview:self.xiangjiBtn];
    [self.xiangjiBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(48);
        make.width.mas_equalTo(SCREEN_WIDETH-50);
        make.bottom.equalTo(self.mas_bottom).offset(-30-FootHeight);
        make.centerX.equalTo(self);
    }];
    
 
  
}


- (SQCustomButton *)xiangjiBtn{
    if (!_xiangjiBtn) {
        _xiangjiBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _xiangjiBtn.text = SQNSLocalString(@"去发布");
        _xiangjiBtn.font = FONT_MEDIUM(14);
        _xiangjiBtn.textColor = UIColor.whiteColor;
        _xiangjiBtn.backgroundColor = SQColorDA70D6;
        _xiangjiBtn.layer.cornerRadius = 24;
    }
    return _xiangjiBtn;
}
- (SQCustomButton *)xiangceBtn{
    if (!_xiangceBtn) {
        _xiangceBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _xiangceBtn.text = SQNSLocalString(@"取消");
        _xiangceBtn.font = FONT_MEDIUM(14);
        _xiangceBtn.textColor = SQColor666666;
    }
    return _xiangceBtn;
}

@end
